package com.deyinet.bdcms.dao;

import com.deyinet.bdcms.core.dao.Dao;
import com.deyinet.bdcms.entity.Alarm;
import com.deyinet.bdcms.entity.Devicedata;

import java.sql.Timestamp;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/10/13 0013.
 */
public interface IAlarmDao extends Dao<Alarm>{
    Integer deviceAlarmCount(Alarm alarm);
    Integer lastAlarm();
    void flushAlarm(String sn);
    List<Alarm> findByExampleLike(Alarm example, int pageNo, int pageSize, Timestamp beginTime, Timestamp endTime);
    long countByExampleLike(Alarm example, Timestamp beginTime, Timestamp endTime);
    Map<String, Object> getlastAlarm();
}
